package com.kk.proxy.staticproxy;

import com.kk.proxy.common.ITeacherDao;

/**
 * 静态代理
 *
 * @author 王志强
 * @date 2021-12-14
 */
public class ProxyTeacherDao implements ITeacherDao {

    private final ITeacherDao teacherDao;

    public ProxyTeacherDao(ITeacherDao teacherDao) {
        this.teacherDao = teacherDao;
    }

    @Override
    public void teacher() {
        System.out.println("静态代理操作");
        teacherDao.teacher();
        System.out.println("静态代理操作");
    }
}
